/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Stratego;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.*;
/**
 *
 * @author lipnz
 */
class Spelbord extends JPanel {

    private Speler speler1 ;
    private Speler speler2 ;
    private Bord bord;

    public Spelbord() {
        speler1  = new Speler("lipnz",Color.BLUE);
        speler2 = new Speler("Thijs",Color.RED);
        bord = new Bord();
            
        JPanel paneel = new JPanel();

        paneel.setLayout(new BoxLayout(paneel,BoxLayout.X_AXIS));
        paneel.add(speler1.getKerkhof());
        paneel.add(Box.createRigidArea(new Dimension(100,0)));
        paneel.add(bord);
        paneel.add(Box.createRigidArea(new Dimension(100,0)));
        paneel.add(speler2.getKerkhof());

        setLayout(new BorderLayout());
        add(paneel,BorderLayout.CENTER);


    }

}
